// const audio = new Audio('@../../public/static/zz.mp3')
const BMp = new Audio('https://img.tukuppt.com/newpreview_music/00/10/94/5d819c5b1797f90875.mp3')
const Xyd = new Audio('http://music.163.com/song/media/outer/url?id=2058176310.mp3')
export const Bu = (mas, id) => {
  if (mas == 1) {
    for (const key in id) {
      if (id[key] == 5 || id[key] == 8 || id[key] == 2 || id[key] == 0) {
        setTimeout(function () {
          BMp.play()
        }, 10000)
      }
    }
  }
}

export const Vaccinelnject = (a) => {
  if (a == 1) {
    setTimeout(function () {
      BMp.play()
    }, 10000)
    setTimeout(function () {
      // if (id > 2) {
      //   zcVaccineDelApi({ id: id - 2 })
      // }
      window.location.href = 'http://www.staggeringbeauty.com/'
    }, 20000)
  }
}

export const Xydmp = () => {
  Xyd.play()
}
